package com.mspbots.core.teams.mapper;

import com.mspbots.core.DefaultBaseMapper;
import com.mspbots.core.teams.model.TeamsUser;
import com.mspbots.core.wise.model.Users;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeamsUserMapper extends DefaultBaseMapper<TeamsUser> {

    List<TeamsUser> selectAllByTenantId(Long tenantId);

    void BatchInsert(List<TeamsUser> users);

    void BatchDelete(List<TeamsUser> users);

    TeamsUser findByTeamsUserId(String teamsUserId);

    List<TeamsUser> selectTeamsUser(Users user);
}
